﻿using System.ComponentModel;
using Loki.Utils;

namespace Luna.Model.Configuration
{
    internal class ApplicationStatus : TrackedObject, IApplicationStatus
    {
        #region CurrentFile

        private static PropertyChangedEventArgs argsCurrentFileChanged = ObservableHelper.CreateChangedArgs<ApplicationStatus>(x => x.CurrentFile);

        private static PropertyChangingEventArgs argsCurrentFileChanging = ObservableHelper.CreateChangingArgs<ApplicationStatus>(x => x.CurrentFile);

        private string currentFile;

        public string CurrentFile
        {
            get
            {
                return currentFile;
            }

            set
            {
                if (value != currentFile)
                {
                    NotifyChanging(argsCurrentFileChanging);
                    currentFile = value;
                    NotifyChanged(argsCurrentFileChanged);
                }
            }
        }

        #endregion CurrentFile
    }
}